﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YunShop_WebAPI.Model
{
    public class MemberTimeResponse
    {
        // 方案id
        public long FItemID { get; set; }
        public int FCorpID { get; set; }
        // 分类
        public long FClassID { get; set; }
        public long FStockID { get; set; }
        public string FName { get; set; }
        public decimal FAmount { get; set; }
        public decimal FSetQty { get; set; }

        public int FTime { get; set; }
        // 使用期限类型
        public int FCardType { get; set; }
        // 使用期限类型
        public string FCardTypeDesc { get; set; }
        // 有效天数
        public int FEffectDays { get; set; }
        // 开始时间
        public DateTime FStartDate { get; set; }
        // 结束时间
        public DateTime FEndDate { get; set; }
        public string FRemark { get; set; }
        // 选择方式
        public int FType { get; set; }
        public int FGoodCount { get; set; }
        //消费数量
        public int FGoodSend { get; set; }
        //消费方式
        public int FSendType { get; set; }
        //每次积分
        public decimal FIntegral { get; set; }
        //积分方式
        public int FIntType { get; set; }

        public string StockName { get; set; }

        /// <summary>
        /// 次卡Id
        /// </summary>
        public long TotalId { get; set; }
        /// <summary>
        /// 剩余次数
        /// </summary>
        public decimal LiveTime { get; set; }
        /// <summary>
        /// 状态说明
        /// </summary>
        public string StatusDesc { get; set; }
        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime FDate { get; set; }

        public MemberTimeResponse Copy()
        {
            MemberTimeResponse NewObj = new MemberTimeResponse();
            NewObj.FAmount = this.FAmount;
            NewObj.FCardType = this.FCardType;
            NewObj.FCardTypeDesc = this.FCardTypeDesc;
            NewObj.FClassID = this.FClassID;
            NewObj.FCorpID = this.FCorpID;
            NewObj.FDate = this.FDate;
            NewObj.FEffectDays = this.FEffectDays;
            NewObj.FEndDate = this.FEndDate;
            NewObj.FGoodCount = this.FGoodCount;
            NewObj.FGoodSend = this.FGoodSend;
            NewObj.FIntegral = this.FIntegral;
            NewObj.FIntType = this.FIntType;
            NewObj.FItemID = this.FItemID;
            NewObj.FName = this.FName;
            NewObj.FRemark = this.FRemark;
            NewObj.FSendType = this.FSendType;
            NewObj.FSetQty = this.FSetQty;
            NewObj.FStartDate = this.FStartDate;
            NewObj.FStockID = this.FStockID;
            NewObj.FTime = this.FTime;
            NewObj.FType = this.FType;
            NewObj.LiveTime = this.LiveTime;
            NewObj.StatusDesc = this.StatusDesc;
            NewObj.StockName = this.StockName;
            NewObj.TotalId = this.TotalId;
            return NewObj;
        }
    }
}